import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p006 from './p006';

export default async function a009(fd: IFeidaoAiBrowserComponent) {
	// 当部门下拉框选中数据的时候，获取部门编号，再模糊查询项目下拉框的数据，再进行渲染
	const pp=fd.data.node.querySelector<HTMLSelectElement>('[data-id="deptname"]');
	const department_no=pp.selectedOptions[0].value;
	const res = await nodejs<{dx: Array<{}>}>('staff-management/zj-000001/s006',{filter:{department_no}});
	render(fd,res.dx,p006,'p006','inner');
}
